from jsmodel_bistable_feedback_switch_server import BistableFeedbackSwitch
from pylab import plot
from pylab import show
from pylab import legend
from pylab import figure
from pylab import semilogy


'''
t = 16000
p1 = 200
p2 = 200
p3 = 200
p4 = 200
p5 = 200
#pcs = [3000,15000]
pcs  = [8000]
#pcs = []
pchl = 0
pcd  = [2000]
#rms = [9000,18000]
#rms = []
rms  = [3000]
rmhl = 0
rmd  = [2000]
thresh = 1e2
req = False
hk = 3.0
'''

t = 15000
p1 = 43
p2 = 169
p3 = 43
p4 = 169
p5 = 200
pcs = []
pchl = 0
pcd  = [0]
rms = []
rmhl = 0
rmd  = [0]
thresh = 1e2
req = False
#Hill coefficient: inducer 1, inducer2, tal97, tal57
hk = [2.0,2.0,3.0,3.0]
switch = BistableFeedbackSwitch(True, t, p1, p2, p3, p4, p5, req, pcs, pchl, pcd, rms, rmhl, rmd, hk, thresh)
figs = switch.run()
show()